import { request } from 'umi';

export function getCategory() {
  return request('/api/category', {
    method: 'GET'
  });
}
export function getCategoryType(id: string) {
  return request(`/api/category/${id}`, {
    method: 'GET'
  });
}
export function getCategoryData(id: string) {
  return request(`/api/article/category/${id}`, {
    method: 'GET'
  });
}